import fs from 'fs';
import path from 'path';
export default (env) => {
  const addFontScss = async () => {
    // -------------------------
    // 任务2. 同步生成 env.scss
    // -------------------------
    const envScssPath = path.resolve(process.cwd(), 'src/common/css/_env.scss');
    const envScssContent = `


      `;
    // 写入 env.scss 文件
    await fs.promises.writeFile(envScssPath, envScssContent);
    console.log('env.scss 文件写入成功');
  }
  return {
    addFontScss,
  };
}